package com.editso.haier.configure;

import com.editso.haier.storage.Storage;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "haier")
@Data
public class HaierConfigure {

    private String adminUserName;
    private String adminPassword;
    private boolean noLogin;

    /**
     * 资源存放方法
     * @see Storage#getName()
     * */
    private String resourceStorageType = "local";

    /**
     * 资源存放地址
     * */
    private String resourceStorageUri = "file:///./assets";

    /**
     * cookie加盐
     * */
    private String cookieSalt;
}
